package com.wlh;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.wlh.mapper")
public class H2MastApplication extends SpringBootServletInitializer {

	// mybatis plus 分页，连接h2数据库
	public static void main(String[] args) {
		SpringApplication.run(H2MastApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(H2MastApplication.class);
	}

}
